<div id="header" class="header">
  <div class="wrap">
      <div class="headerContainer clearfloat">
        <div class="logo"><img src="/image/myblog-icon.png" /></div>
        <% if (userInfo._id) { %>
          <span class="logout">登出</span>
          <% if (userInfo.isAdmin) { %>
            <a href="/admin">进入管理&nbsp;</a>
          <% } %>
          <span class="username"><%= userInfo.username %>&nbsp;</span>
        <% } else { %>
          <span class="login">登录</span>
        <% } %>
      </div>
  </div>
</div>
